<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="jsinfo/test01.js"></script>

<script>
    alert('内部js');
</script>

<body>
    <h2 onclick="alert('行内js');">点我试试</h2>
</body>

</html>